# -*- coding: utf-8 -*-


from selenium import webdriver
import time

if __name__ == '__main__':
    """
    chrome driver download : http://chromedriver.storage.googleapis.com/index.html
    下载浏览器驱动要根据安装的浏览器版本匹配
    将浏览器驱动所在路径设置为环境变量
    """
    driver = webdriver.Chrome()
    driver.get("https://www.baidu.com")
    time.sleep(3)
    driver.save_screenshot('baidu.png')
    driver.close()
    pass
